import { IBrandsProps } from "@/components/car/all-brands"
import { ICategoryProps } from "@/components/car/car-category"
import { IModelCardProps } from "@/components/car/model-card"

export const getAllBrandsList = async (): Promise<IBrandsProps[]> => {
  return [
    { id: 1, name: 'Audi', slug: 'audi', imgUrl: 'https://picsum.photos/200/200' },
    { id: 2, name: 'BMW', slug: 'bmw', imgUrl: 'https://picsum.photos/201/200' },
    { id: 3, name: 'Mercedes-Benz', slug: 'mercedes-benz', imgUrl: 'https://picsum.photos/202/200' },
    { id: 4, name: 'Toyota', slug: 'toyota', imgUrl: 'https://picsum.photos/203/200' },
    { id: 5, name: 'Honda', slug: 'honda', imgUrl: 'https://picsum.photos/204/200' },
    { id: 6, name: 'Ford', slug: 'ford', imgUrl: 'https://picsum.photos/205/200' },
    { id: 7, name: 'Chevrolet', slug: 'chevrolet', imgUrl: 'https://picsum.photos/206/200' },
    { id: 8, name: 'Volkswagen', slug: 'volkswagen', imgUrl: 'https://picsum.photos/207/200' },
    { id: 9, name: 'Hyundai', slug: 'hyundai', imgUrl: 'https://picsum.photos/208/200' },
    { id: 10, name: 'Kia', slug: 'kia', imgUrl: 'https://picsum.photos/209/200' },
    { id: 11, name: 'Nissan', slug: 'nissan', imgUrl: 'https://picsum.photos/210/200' },
    { id: 12, name: 'Subaru', slug: 'subaru', imgUrl: 'https://picsum.photos/211/200' },
    { id: 13, name: 'Mazda', slug: 'mazda', imgUrl: 'https://picsum.photos/212/200' },
    { id: 14, name: 'Lexus', slug: 'lexus', imgUrl: 'https://picsum.photos/213/200' },
    { id: 15, name: 'Infiniti', slug: 'infiniti', imgUrl: 'https://picsum.photos/214/200' },
    { id: 16, name: 'Acura', slug: 'acura', imgUrl: 'https://picsum.photos/215/200' },
    { id: 17, name: 'Volvo', slug: 'volvo', imgUrl: 'https://picsum.photos/216/200' },
    { id: 18, name: 'Jaguar', slug: 'jaguar', imgUrl: 'https://picsum.photos/217/200' },
    { id: 19, name: 'Land Rover', slug: 'land-rover', imgUrl: 'https://picsum.photos/218/200' },
    { id: 20, name: 'Porsche', slug: 'porsche', imgUrl: 'https://picsum.photos/219/200' },
    { id: 21, name: 'Ferrari', slug: 'ferrari', imgUrl: 'https://picsum.photos/220/200' },
    { id: 22, name: 'Lamborghini', slug: 'lamborghini', imgUrl: 'https://picsum.photos/221/200' },
    { id: 23, name: 'Tesla', slug: 'tesla', imgUrl: 'https://picsum.photos/222/200' },
    { id: 24, name: 'BYD', slug: 'byd', imgUrl: 'https://picsum.photos/223/200' },
    { id: 25, name: 'Geely', slug: 'geely', imgUrl: 'https://picsum.photos/224/200' },
    { id: 26, name: 'Great Wall', slug: 'great-wall', imgUrl: 'https://picsum.photos/225/200' },
    { id: 27, name: 'Chery', slug: 'chery', imgUrl: 'https://picsum.photos/226/200' },
    { id: 28, name: 'Changan', slug: 'changan', imgUrl: 'https://picsum.photos/227/200' },
    { id: 29, name: 'Wuling', slug: 'wuling', imgUrl: 'https://picsum.photos/228/200' },
    { id: 30, name: 'Hongqi', slug: 'hongqi', imgUrl: 'https://picsum.photos/229/200' }
  ]
}

export const getCarCategoryList = async (): Promise<ICategoryProps[]> => {
  return [
    {
      name: '车型库',
      slug: 'models',
      children: [
        { 
          name: '车身类型', 
          slug: 'body-type',
          details: [
            { 
              name: '轿车', 
              slug: 'sedan',
            },
            { 
              name: 'SUV', 
              slug: 'suv',
            },
            { 
              name: 'MPV', 
              slug: 'mpv',
            },
            { 
              name: '跑车', 
              slug: 'sports-car',
            },
            { 
              name: '皮卡', 
              slug: 'pickup-truck',
            },
          ]
        },
        { 
          name: '燃油类型', 
          slug: 'fuel-type',
          details: [
            { 
              name: '汽油', 
              slug: 'gasoline',
            },
            { 
              name: '柴油', 
              slug: 'diesel',
            },
            { 
              name: '混合动力', 
              slug: 'hybrid',
            },
            { 
              name: '电动', 
              slug: 'electric',
            },
          ]
        },
        { 
          name: '预算区间', 
          slug: 'budget-range',
          details: [
            { name: '10万以下', slug: 'any-10000' },
            { name: '10万 - 20万', slug: '10000-20000' },
            { name: '20万 - 30万', slug: '20000-30000' },
            { name: '30万 - 40万', slug: '30000-40000' },
            { name: '40万 - 50万', slug: '40000-50000' },
            { name: '50万以上', slug: '50000-any' },
          ]
        },
      ],
    },
    {
      name: '新车',
      slug: 'new-cars',
      children: [
        { 
          name: '车身类型', 
          slug: 'body-type',
          details: [
            { 
              name: '轿车', 
              slug: 'sedan',
            },
            { 
              name: 'SUV', 
              slug: 'suv',
            },
            { 
              name: 'MPV', 
              slug: 'mpv',
            },
            { 
              name: '跑车', 
              slug: 'sports-car',
            },
            { 
              name: '皮卡', 
              slug: 'pickup-truck',
            },
          ]
        },
        { 
          name: '燃油类型', 
          slug: 'fuel-type',
          details: [
            { 
              name: '汽油', 
              slug: 'gasoline',
            },
            { 
              name: '柴油', 
              slug: 'diesel',
            },
            { 
              name: '混合动力', 
              slug: 'hybrid',
            },
            { 
              name: '电动', 
              slug: 'electric',
            },
          ]
        },
        { 
          name: '预算区间', 
          slug: 'budget-range',
          details: [
            { name: '10万以下', slug: 'any-10000' },
            { name: '10万 - 20万', slug: '10000-20000' },
            { name: '20万 - 30万', slug: '20000-30000' },
            { name: '30万 - 40万', slug: '30000-40000' },
            { name: '40万 - 50万', slug: '40000-50000' },
            { name: '50万以上', slug: '50000-any' },
          ]
        },
      ],
    },
    {
      name: '二手车',
      slug: 'used-cars',
      children: [
        { 
          name: '车身类型', 
          slug: 'body-type',
          details: [
            { 
              name: '轿车', 
              slug: 'sedan',
            },
            { 
              name: 'SUV', 
              slug: 'suv',
            },
            { 
              name: 'MPV', 
              slug: 'mpv',
            },
            { 
              name: '跑车', 
              slug: 'sports-car',
            },
            { 
              name: '皮卡', 
              slug: 'pickup-truck',
            },
          ]
        },
        { 
          name: '燃油类型', 
          slug: 'fuel-type',
          details: [
            { 
              name: '汽油', 
              slug: 'gasoline',
            },
            { 
              name: '柴油', 
              slug: 'diesel',
            },
            { 
              name: '混合动力', 
              slug: 'hybrid',
            },
            { 
              name: '电动', 
              slug: 'electric',
            },
          ]
        },
        { 
          name: '预算区间', 
          slug: 'budget-range',
          details: [
            { name: '10万以下', slug: 'any-10000' },
            { name: '10万 - 20万', slug: '10000-20000' },
            { name: '20万 - 30万', slug: '20000-30000' },
            { name: '30万 - 40万', slug: '30000-40000' },
            { name: '40万 - 50万', slug: '40000-50000' },
            { name: '50万以上', slug: '50000-any' },
          ]
        },
      ],
    }
  ]
}


export const getModels = async (): Promise<{
  list: IModelCardProps[]
  total: number
}> => {
  return {
    list: [
      {
        brandSlug: 'benze',
        brandName: '奔驰',
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 C 类',
        minPrice: 100000,
        bodyTypeName: '轿车',
        slug: 'benze-c-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 E 类',
        minPrice: 150000,
        bodyTypeName: '轿车',
        slug: 'benze-e-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 G 类',
        minPrice: 0,
        bodyTypeName: '轿车',
        slug: 'benze-g-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 S 类',
        minPrice: 0,
        bodyTypeName: '轿车',
        slug: 'benze-s-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 X 类',
        minPrice: 300000,
        bodyTypeName: '轿车',
        slug: 'benze-x-class',
      },
      { 
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XE 类',
        minPrice: 350000,
        bodyTypeName: '轿车',
        slug: 'benze-xe-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XG 类',
        minPrice: 400000,
        bodyTypeName: '轿车',
        slug: 'benze-xg-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XJ 类',
        minPrice: 450000,
        bodyTypeName: '轿车',
        slug: 'benze-xj1-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XJ 类',
        minPrice: 500000,
        bodyTypeName: '轿车',
        slug: 'benze-xj2-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XJ 类',
        minPrice: 550000,
        bodyTypeName: '轿车',
        slug: 'benze-xj3-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XJ 类',
        minPrice: 600000,
        bodyTypeName: '轿车',
        slug: 'benze-xj4-class',
      },
      {
        brandSlug: 'benze',
        brandName: '奔驰',    
        coverUrl: 'https://picsum.photos/200/300',
        name: '奔驰 XJ 类',
        minPrice: 650000,
        bodyTypeName: '轿车',
        slug: 'benze-xj5-class',
      },
    ],
    total: 1566,
  }
}